<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
    <script type="text/javascript">

    	document.onclick=function(){
    		var scrollTop = document.documentElement.scrollTop||document.body.scrollTop;
    		alert(scrollTop);
    	}
        

    </script>
</head>
<body style="height: 5000px">
	
</body>
</html>